%% para
rootLibDir = '../00_analysis/';

%% Recreate needed property constants defined in nilibddc_m.h
DDC_FILE_DATETIME = 'datetime';

%% paths to dll
dllfile = dir([rootLibDir 'TDMSLibs/bin/64-bit/nilibddc.dll']);
libname=strtok(dllfile.name,'.');
NI_TDM_DLL_Path=fullfile(dllfile.folder,dllfile.name);
hfile = dir([rootLibDir 'TDMSLibs/include/64-bit/nilibddc_m.h']);
NI_TDM_H_Path=fullfile(hfile.folder,hfile.name);

%% Load nilibddc.dll (Always call 'unloadlibrary(libname)' after finished using the library)
loadlibrary(NI_TDM_DLL_Path,NI_TDM_H_Path);
